package testrc

import (
	"encoding/xml"
	"time"

	"awfan.cn/utils"
	"gopkg.in/mgo.v2/bson"
)

type TESTRCS_XML struct {
	XMLName xml.Name `xml:"testrcs" json:"-"`

	Tests []TESTRC_XML `xml:"testrc" json:"testrcs"`
}

type TESTRC_XML struct {
	Id           bson.ObjectId         `xml:"id" json:"id" bson:"_id,omitempty"`
	Member       utils.EMBED_DISPLAYID `xml:"member" json:"member" bson:"member,omitempty"`
	Test         utils.EMBED_DISPLAYID `xml:"test" json:"test" bson:"test,omitempty"`
	Passed       int                   `xml:"passed" json:"passed" bson:"passed,omitempty"`
	Description  string                `xml:"description" json:"description" bson:"description,omitempty"`
	Times        int                   `xml:"times" json:"times" bson:"times,omitempty"`
	Created_time time.Time             `xml:"created_time" json:"created_time" bson:"created_time,omitempty"`
}
